/**
 * @Description:  路侧管理API
 * @Author:       zhaixiangjun
 * @Date: 2021-11-09 15:13:26
 * @LastEditors:  zhaixiangjun
 * @LastEditTime: 2021-11-09 15:14:32
 */

import { service as request, BasePath } from '../request'

/**
  * 查询所有道路编号列表
  * @returns {Object} Promise
  */
export const getRoadIds = () => request({
  url: `${BasePath}/roadsideinfo/allroadid`,
  method: 'GET'
})
/**
  * 查询所有位置类型
  * @returns {Object} Promise
  */
export const getLocationTypes = () => request({
  url: `${BasePath}/roadsideinfo/locationtype`,
  method: 'GET'
})

/**
  * 查询所有路侧类型
  * @returns {Object} Promise
  */
export const getRoadSideTypes = () => request({
  url: `${BasePath}/roadsideinfo/roadsidetype`,
  method: 'GET'
})

/**
  * 添加路侧数据
  * @param {Object} data 路侧数据
  * @returns {Object} Promise
  */
export const addRoadSideInfo = (data) => request({
  url: `${BasePath}/roadsideinfo`,
  method: 'POST',
  data
})

/**
  * 编辑路侧数据
  * @param {Object} data 路侧数据
  * @returns {Object} Promise
  */
export const editRoadSideInfo = (data) => request({
  url: `${BasePath}/roadsideinfo`,
  method: 'PUT',
  data
})
/**
  * 查询所有路侧编号列表
  * @returns {Object} Promise
  */
export const getRoadSideList = () => request({
  url: `${BasePath}/roadsideinfo/all`,
  method: 'GET'
})
